package JAVATest;

/**
 * ClassName:Text_012
 * Package:JAVATest
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/12-19:42
 * @Version:v1.0
 */
public class Text_012 {
    public static void main(String[] args) {
        int []arr={1,2,3,4,5};
        int []newArr=new int[arr.length];
        extracted(arr, newArr);
    }

    private static void extracted(int[] arr, int[] newArr) {
        for (int i = 0; i < arr.length; i++) {
            newArr[i] = arr[i];
        }
        for (int i = 0; i < newArr.length; i++) {
            System.out.println(newArr[i]);
        }
    }

}
